package com.ruoyi.fit.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 饮食数据对象 health_diet
 * 
 * @author useragent-1
 * @date 2025-05-16
 */
public class HealthDiet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 饮食日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "饮食日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dietDate;

    /** 餐别类型 */
    @Excel(name = "餐别类型")
    private String mealType;

    /** 食物名称 */
    @Excel(name = "食物名称")
    private String foodName;

    /** 食物分类 */
    @Excel(name = "食物分类")
    private String foodCategory;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal quantity;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 卡路里(千卡) */
    @Excel(name = "卡路里(千卡)")
    private Long calories;

    /** 蛋白质(g) */
    @Excel(name = "蛋白质(g)")
    private BigDecimal protein;

    /** 碳水化合物(g) */
    @Excel(name = "碳水化合物(g)")
    private BigDecimal carbohydrate;

    /** 脂肪(g) */
    @Excel(name = "脂肪(g)")
    private BigDecimal fat;

    /** 食物照片URL */
    @Excel(name = "食物照片URL")
    private String photoUrl;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setDietDate(Date dietDate) 
    {
        this.dietDate = dietDate;
    }

    public Date getDietDate() 
    {
        return dietDate;
    }

    public void setMealType(String mealType) 
    {
        this.mealType = mealType;
    }

    public String getMealType() 
    {
        return mealType;
    }

    public void setFoodName(String foodName) 
    {
        this.foodName = foodName;
    }

    public String getFoodName() 
    {
        return foodName;
    }

    public void setFoodCategory(String foodCategory) 
    {
        this.foodCategory = foodCategory;
    }

    public String getFoodCategory() 
    {
        return foodCategory;
    }

    public void setQuantity(BigDecimal quantity) 
    {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity() 
    {
        return quantity;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public void setCalories(Long calories) 
    {
        this.calories = calories;
    }

    public Long getCalories() 
    {
        return calories;
    }

    public void setProtein(BigDecimal protein) 
    {
        this.protein = protein;
    }

    public BigDecimal getProtein() 
    {
        return protein;
    }

    public void setCarbohydrate(BigDecimal carbohydrate) 
    {
        this.carbohydrate = carbohydrate;
    }

    public BigDecimal getCarbohydrate() 
    {
        return carbohydrate;
    }

    public void setFat(BigDecimal fat) 
    {
        this.fat = fat;
    }

    public BigDecimal getFat() 
    {
        return fat;
    }

    public void setPhotoUrl(String photoUrl) 
    {
        this.photoUrl = photoUrl;
    }

    public String getPhotoUrl() 
    {
        return photoUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("dietDate", getDietDate())
            .append("mealType", getMealType())
            .append("foodName", getFoodName())
            .append("foodCategory", getFoodCategory())
            .append("quantity", getQuantity())
            .append("unit", getUnit())
            .append("calories", getCalories())
            .append("protein", getProtein())
            .append("carbohydrate", getCarbohydrate())
            .append("fat", getFat())
            .append("photoUrl", getPhotoUrl())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
